Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[local-app] add other arch support #5944

Closed
wants to merge 1 commit into from
Closed

[local-app] add other arch support #5944

wants to merge 1 commit into from

Conversation

iQQBot
Copy link
Contributor

@iQQBot iQQBot commented Sep 30, 2021

  • /werft with-clean-slate-deployment

Description

Add windows-386(win32), windows-arm64, darwin-arm64, linux-arm64 support for local-app
next step is update gitpod.io website document and vscode extension

Related Issue(s)

Related to #5872 and #5320

How to test

Release Notes

NONE

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign corneliusludmann, geropl after the PR has been reviewed.
You can assign the PR to them by writing /assign @corneliusludmann @geropl in a comment when ready.

Associated issue: #5872

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@akosyakov
Copy link
Member

akosyakov commented Oct 4, 2021

/werft run

👍 started the job as gitpod-build-pd-local-app-add-other-arch-support-fork.0

@akosyakov
Copy link
Member

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

@iQQBot I tried to run the build but it fails: https://werft.gitpod-dev.com/job/gitpod-build-pd-local-app-add-other-arch-support-fork.0

I will take a look

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

@akosyakov The two problems above have been fixed, please try the build again

@akosyakov
Copy link
Member

akosyakov commented Oct 4, 2021

/werft run

👍 started the job as gitpod-build-pd-local-app-add-other-arch-support-fork.1

@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #5944 (26618a7) into main (fad83ab) will not change coverage.
The diff coverage is n/a.

❗ Current head 26618a7 differs from pull request most recent head ac3f037. Consider uploading reports for the commit ac3f037 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5944   +/-   ##
=======================================
  Coverage   19.04%   19.04%           
=======================================
  Files           2        2           
  Lines         168      168           
=======================================
  Hits           32       32           
  Misses        134      134           
  Partials        2        2           
Flag Coverage Δ
components-local-app-app-linux ?
components-local-app-app-linux-amd64 19.04% <ø> (?)
components-local-app-app-linux-arm64 ∅ <ø> (?)
components-local-app-app-windows ?
components-local-app-app-windows-386 ∅ <ø> (?)
components-local-app-app-windows-amd64 ∅ <ø> (?)
components-local-app-app-windows-arm64 ∅ <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fad83ab...ac3f037. Read the comment docs.

@akosyakov
Copy link
Member

@jeanp413 @filiptronicek Could you please check that you can still open a workspace in VS Code Desktop with this PR? I need to verify backward compatibility on linux and windows.

I failed to open it on Mac getting:

[10/4/2021, 8:42:47 AM] failed to open uri: FetchError: request to https://pd-local-app-add-other-arch-support-fork.staging.gitpod-dev.com/static/bin/gitpod-local-companion-darwin failed, reason: certificate has expired

@akosyakov
Copy link
Member

@iQQBot I checked internally and the certificate is valid, also I validated with other envs that VS Code Desktop is still working. It seems to be broken only with this PR.

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

Is your time error ? @akosyakov
image
use curl download is ok

This PR does not modify anything related to the certificate

@JanKoehnlein
Copy link
Contributor

Please ping me when its ready and you need my review

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

Please ping me when its ready and you need my review

I can't test in dev environment

@jeanp413
Copy link
Member

jeanp413 commented Oct 4, 2021

/werft run

👍 started the job as gitpod-build-pd-local-app-add-other-arch-support-fork.2

@jeanp413
Copy link
Member

jeanp413 commented Oct 4, 2021

@akosyakov works for me in vscode insiders on Ubuntu

@filiptronicek
Copy link
Member

I am trying to test on Windows, but still keep running into the certificate error, @akosyakov do you know of any way to circumvent / get rid of this error at least for testing?

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

It seem a bug fromvscode and let's encrypt, since DST Root CA X3 Expiration is expire on Sep. 30
you can use a proxy with mitm to bypass it @akosyakov @filiptronicek

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

image
you can see it
and gitpod.io is not using let's encrypt, so there is no problem
image

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

if you can modify kubernetes cluster, you can find cert and delete last chain like this

image

which is a cross-signed ROOT CA, it direct trust in popular system
image

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 4, 2021

after delete , you will got
image
and it works!
image

@akosyakov @filiptronicek

@meysholdt
Copy link
Member

meysholdt commented Oct 5, 2021

/werft run

👍 started the job as gitpod-build-pd-local-app-add-other-arch-support-fork.3

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 5, 2021

@meysholdt remember to delete last CA chain

@meysholdt
Copy link
Member

I'm trying to understand where the outdated letsencrypt cert comes from. I can't reproduce it by running curl https://pd-local-app-add-other-arch-support-fork.staging.gitpod-dev.com/static/bin/gitpod-local-companion-darwin --output foo.bin

How can I reproduce it?

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 5, 2021

use openssl s_client -connect pd-local-app-add-other-arch-support-fork.staging.gitpod-dev.com:443 @meysholdt

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 5, 2021

and more document is here https://letsencrypt.org/certificates/

image

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 5, 2021

because the automatic generate cert is full chain, site cert + IntermediateCA + rootCA
but let's encrypt rootCA is using a expire Cross Signing, in some version openssl library, it cause error
Considering that new root CA certificates have been built into the mainstream operating systems, deleting the redundant and problematic root CA directly in the certificate chain can solve this problem

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 5, 2021

@meysholdt i made #6043 PR to delete rootCA section

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 5, 2021

@akosyakov @filiptronicek @meysholdt certificate issue has been resolved by #6043 (comment)

You can build again to use new certificate

@akosyakov
Copy link
Member

akosyakov commented Oct 6, 2021

/werft run

👍 started the job as gitpod-build-pd-local-app-add-other-arch-support-fork.4

@akosyakov
Copy link
Member

@iQQBot I changed the PR description that issues does not get closed till we actually update docs and VS Code extension.

@akosyakov
Copy link
Member

@meysholdt @aledbf I still get the same errors. Should we rebase the PR on main?

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 6, 2021

@akosyakov Can you send tls.crt ? Let's see what the problem is.
in openssl there still have 3 chain
image

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 6, 2021

and I rebase the PR on main

@akosyakov
Copy link
Member

akosyakov commented Oct 6, 2021

/werft run

👍 started the job as gitpod-build-pd-local-app-add-other-arch-support-fork.5

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 6, 2021

still have problem in dev
image
@aledbf

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 6, 2021

you can manual fix this by #5944 (comment) just for this test.

but it not a problem on gitpod.io which is not use let's encrypt

@akosyakov
Copy link
Member

akosyakov commented Oct 6, 2021

/werft run

👍 started the job as gitpod-build-pd-local-app-add-other-arch-support-fork.6

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 6, 2021

I notice the cert is signed at Oct 4 05:35:09 2021 GMT
image
For the same domain name cert-manage does not generate a new certificate, so the new policy cannot be applied
This may require manual actions to remove the root CA or regenerate a new certificate

@aledbf @akosyakov

@akosyakov
Copy link
Member

@iQQBot Could you try to create another PR from another branch?

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 6, 2021

@akosyakov of course

@iQQBot
Copy link
Contributor Author

iQQBot commented Oct 6, 2021

@akosyakov new PR is #6064

@iQQBot iQQBot closed this Oct 6, 2021
@iQQBot iQQBot deleted the pd/local-app-add-other-arch-support branch October 6, 2021 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants